package com.panshi.api;


import com.panshi.bean.CountVo;
import com.panshi.bean.InstationVO;
import com.panshi.bean.PageSizeVO;
import com.panshi.bean.UserVO;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "zhangkai")
@Api("个人信息接口")
public interface UserPoth {

    @GetMapping("/user/{uid}")
    @ResponseBody
    public UserVO findUserQuery(@PathVariable int uid);

    @PostMapping("/user/upda")
    @ResponseBody
    public int updateUser(@RequestBody UserVO userVO);

    @PostMapping("/insQu")
    @ResponseBody
    public List<InstationVO> findInsQuery(@PathVariable int uid);

    @PostMapping("/user/uppo")
    @ResponseBody
    public String judge (@RequestBody UserVO userVO);

    @PostMapping("/user/uuu")
    @ResponseBody
    public PageSizeVO<List<UserVO>> findUserQueryList(@RequestBody PageSizeVO pageSizeVO);

    @GetMapping("/user/count/{uid}")
    @ResponseBody
    public CountVo queryallcount(@PathVariable int uid);

}
